package org.goodprinciples.commons.dao;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author iksyos
 */
public interface GenericDAO<T, ID extends Serializable> {

    public T findById(ID id);
    public List<T> findAll();
    public List<T> findByExample(T exampleInstance, String... filterProperties);
    public int makePersistent(T entity);
    public int synchronize(T entity);
    public int makeTransient(T entity);

}
